package dr.board.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dr.controller.*;

public class DeleteFormAction extends ActionSupportLogin { //글삭제 폼

	@Override
	public String execute(HttpServletRequest request, 
			HttpServletResponse response) throws Throwable {

		String id=getUserLoginId(request);// session
		
		//login check
		if(id==null) return LOGINULL_PATH;
		//login check
		
		int num = Integer.parseInt(request.getParameter("num"));
		String pageNum = request.getParameter("pageNum");
		
		//해당 뷰에서 사용할 속성
		request.setAttribute("num", new Integer(num));
        request.setAttribute("pageNum", new Integer(pageNum));

        return "/board/deleteForm.jsp";//해당뷰
    }

}
